package gameobject.construct;

import com.jme3.scene.shape.Box;
import mygame.Voxel;

public abstract class BaseBlock extends Construct {

    @Override
    protected void addModel() {
	addModelDefault(new Box(Voxel.VOXEL_EXTENT, Voxel.VOXEL_EXTENT, Voxel.VOXEL_EXTENT));
    }

    @Override
    protected int getNumOccupiedVoxels() {
	return DEFAULT_NUM_OCCUPIED_VOXELS;
    }
    
    @Override
    protected void setLocalTranslationWithRespectToBase() {
        setLocalTranslationWithRespectToBaseDefault();
    }

    @Override
    protected void recalculateOccupiedVoxels() {
        occupiedVoxels.get(0).setVoxelGridLocation(baseVoxelGridLocation);
    }
}
